#include "BunnyEncrypt.h"
#include "stdio.h"
#include <iostream>
#include <string>
void Encrypt(char *pstr,int *pkey);
void Decrypt(char *pstr,int *pkey);
//加密
void Encrypt(char *pstr,int *pkey){
	int len=strlen(pstr);//获取长度
	for(int i=0;i<len;i++)
	*(pstr+i)=*(pstr+i)^pkey[i%5];
		//*(pstr+i)=EncryptChar(*(pstr+i),pkey[i%5]);
}

//解密
void Decrypt(char *pstr,int *pkey){
	int len=strlen(pstr);
	for(int i=0;i<len;i++)
	*(pstr+i)=*(pstr+i)^pkey[i%5];
		//*(pstr+i)=DecryptChar(*(pstr+i),pkey[i%5]);
}

